﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace HRdex_Final
{
    /// <summary>
    /// Summary description for SlidesService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    [System.Web.Script.Services.ScriptService]

    public class SlidesService : System.Web.Services.WebService
    {

        [WebMethod]
        public static AjaxControlToolkit.Slide[] GetSlides()
        {
            AjaxControlToolkit.Slide[] imgSlide = new AjaxControlToolkit.Slide[4];

            imgSlide[0] = new AjaxControlToolkit.Slide("Images/about1.jpg", "adu1", "1");
            imgSlide[1] = new AjaxControlToolkit.Slide("Images/about2.jpg", "adu2", "2");
            imgSlide[2] = new AjaxControlToolkit.Slide("Images/about3.jpg", "adu3", "3");
            imgSlide[3] = new AjaxControlToolkit.Slide("Images/about4.jpg", "adu4", "4");

            return (imgSlide);
        }
    }
}
